package com.mlt.back.service.impl;

import com.mlt.back.beans.BasicInfo;
import com.mlt.back.dao.BasicInfoDao;
import com.mlt.back.dao.impl.BasicInfoDaoImpl;
import com.mlt.back.service.BasicInfoService;

import java.util.List;
/**
 *@author 李
 *@date 2022/12/29
*/

public class BasicInfoServiceImpl implements BasicInfoService {

    //查询所有
    private BasicInfoDao basicInfoDao = new BasicInfoDaoImpl();
    @Override
    public List<BasicInfo> list() {
        return basicInfoDao.selectAll();
    }

    @Override
    public Integer add(BasicInfo basicInfo) {
        return basicInfoDao.insert(basicInfo);
    }

    @Override
    public Integer modify(BasicInfo basicInfo) {
        return basicInfoDao.update(basicInfo);
    }

    @Override
    public Integer remove(Integer id) {
        return basicInfoDao.delete(id);
    }
}
